package com.czm.art_light.mapper;

import com.czm.art_light.entity.ArtUserFeedback;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 反馈内容 Mapper 接口
 */
@Mapper
public interface ArtUserFeedbackMapper {
    /**
     * 添加反馈的内容
     */
    int addFeedback(@Param("artUserFeedback") ArtUserFeedback artUserFeedback);

    /**
     * 获取当前用户的所有反馈
     */
    List<ArtUserFeedback> selectByUserId(@Param("userId") Integer userId);
}
